package com.xxx.homework1;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class Random {
    @RequestMapping("/random")
    public int random(){
        int randomNumber = (int) (Math.random() * 1000);
        return randomNumber;
    }
}
